package cn.gok.lambda;

import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @ClassName 其他Map实现类
 * @Description TODO
 * @Author HP
 * @Date 10:56 2022/7/12
 * @Version 1.0
 **/

public class 其他Map实现类 {
public static void main(String[]args){
        LinkedHashMap例子();
        Hashtable例子();
}

    private static void Hashtable例子() {
        Map<String,String> map = new Hashtable<>();
        map.put("aaa","111");
        map.put(null,"2222");
        map.put("bbbb",null);
         ;
    }

    private static void LinkedHashMap例子() {
        Map<String,String> map = new LinkedHashMap<>();
        map.put("sad","111");
        map.put("sdassaad","222");
        map.put("sasdsaad","333");
        System.out.println(map);

    }
}
